package lab02.test03;
public class Grade {
    float internetscore;
    float mathscore;
    float  englishscore;
    float max;
    float min;
       float sum (){
           return internetscore+mathscore+englishscore;
       }
       float average(){
           return (internetscore+mathscore+englishscore)/3;
       }
       float mix(){
           float mix;
           if (internetscore<=mathscore)
               mix=internetscore;
           else mix=mathscore;
           if (mix<=englishscore)
               return mix;
           else{ mix=englishscore;
           return mix;}

       }
       float max(){
           if (internetscore<=mathscore)
               max=mathscore;
           else max=internetscore;
           if (max<=englishscore){
               max=englishscore;
           return max;}
           else return max;




       }


       void printgrade(){
           System.out.println("计算机成绩："+internetscore);
           System.out.printf("数学成绩："+mathscore);
           System.out.println("英语成绩："+englishscore);
       }

}
